﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Foundation
{
    class VegetableCreator
    {
        public Tomato CreateTomato(float Weight) 
        {
            Tomato Tomat = new Tomato();
            Tomat.SetWeight(Weight);
            Tomat.CalculateCost();
            return Tomat;
        }

        public Cucumber CreateCucumber(float Weight)
        {
            Cucumber Cucumber = new Cucumber();
            Cucumber.SetWeight(Weight);
            Cucumber.CalculateCost();
            return Cucumber;
        }

        public Tomato CreateTomato(double Weight)
        {
            Tomato Tomat = new Tomato();
            Tomat.SetWeight(Weight);
            Tomat.CalculateCost();
            return Tomat;
        }

        public Cucumber CreateCucumber(double Weight)
        {
            Cucumber Cucumber = new Cucumber();
            Cucumber.SetWeight(Weight);
            Cucumber.CalculateCost();
            return Cucumber;
        }

        public Salat CreateSalat(Tomato Tomat, Cucumber Cucumb)
        {
            Salat Salat = new Salat();
            Salat.MakeSalat(Tomat, Cucumb);
            return Salat;
        }     

    }
}
